//
//  CollectionViewFactory.m
//  Delicious
//
//  Created by 魏群 on 16/5/7.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "CollectionViewFactory.h"

@implementation CollectionViewFactory
+ (BaseCollectionViewCell *)cellWithClass:(Class)modelClass collectionView:(UICollectionView *)collectionView index:(NSIndexPath *)indexPath
{
    NSString *identifier = NSStringFromClass(modelClass);
    BaseCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
    return cell;
}
@end
